/*
 *The code is written by 51jiecai.com.
 *All rights reserved.
 */
package creational.design.patterns.singleton;

/**
 *
 *@author forgkan Created on 2015年4月23日
 *
 */
public class StaticBlockSingleton {

	private static StaticBlockSingleton instance ;
	
	private StaticBlockSingleton() {}
	
	static {
		try {
			instance = new StaticBlockSingleton();
		} catch (Exception e) {
			throw new RuntimeException("create singleton instance error!");
		}
	}
	
	public static StaticBlockSingleton getInstance() {
		return instance;
	}
}
